package com.budwk.app.miniapp.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 字典数据表 sys_dict_data
 */
@Data
@Table("sys_dict_data")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "字典数据表")
public class SysDictData implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 字典编码
     */
    @Id
    @Column("dict_code")
    @Comment("字典编码")
    @ApiModelProperty(description = "字典编码")
    @ColDefine(type = ColType.INT, width = 64)
    private Long dictCode;

    /**
     * 字典排序
     */
    @Column("dict_sort")
    @Comment("字典排序")
    @ApiModelProperty(description = "字典排序")
    @ColDefine(type = ColType.INT, width = 32)
    private Integer dictSort;

    /**
     * 字典标签
     */
    @Column("dict_label")
    @Comment("字典排序")
    @ApiModelProperty(description = "字典排序")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String dictLabel;

    /**
     * 字典键值
     */
    @Column("dict_value")
    @Comment("字典键值")
    @ApiModelProperty(description = "字典键值")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String dictValue;

    /**
     * 字典类型
     */
    @Column("dict_type")
    @Comment("字典类型")
    @ApiModelProperty(description = "字典类型")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String dictType;

    /**
     * 样式属性（其他样式扩展）
     */
    @Column("css_class")
    @Comment("样式属性（其他样式扩展）")
    @ApiModelProperty(description = "样式属性（其他样式扩展）")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String cssClass;

    /**
     * 表格字典样式
     */
    @Column("list_class")
    @Comment("表格字典样式")
    @ApiModelProperty(description = "表格字典样式")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String listClass;

    /**
     * 是否默认（Y是 N否）
     */
    @Column("is_default")
    @Comment("是否默认（Y是 N否）")
    @ApiModelProperty(description = "是否默认（Y是 N否）")
    @ColDefine(type = ColType.CHAR, width = 1)
    private String isDefault;

    /**
     * 状态（0正常 1停用）
     */
    @Column("status")
    @Comment("状态（0正常 1停用）")
    @ApiModelProperty(description = "状态（0正常 1停用）")
    @ColDefine(type = ColType.CHAR, width = 1)
    private String status;

    /**
     * 备注
     */
    @Column("remark")
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String remark;

    /**
     * 父级code
     */
    @Column("parent_code")
    @Comment("父级code")
    @ApiModelProperty(description = "父级code")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private Long parentCode;

    /**
     * 创建者
     */
    @Column("create_by")
    @Comment("创建者")
    @ApiModelProperty(description = "创建者")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String createBy;

    /**
     * 创建时间
     */
    @Column("create_time")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Timestamp createTime;

    /**
     * 更新者
     */
    @Column("update_by")
    @Comment("更新者")
    @ApiModelProperty(description = "更新者")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String updateBy;

    /**
     * 更换时间
     */
    @Column("update_time")
    @Comment("更换时间")
    @ApiModelProperty(description = "更换时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Timestamp updateTime;

    List<SysDictData> subList;
}
